import request from '@/api/request'
function dormlist(params) {
    return request({
        url: '/admin/xy/dorm/list',
        method: 'get',
        params
    })
}
//新增
function dormsave(params) {
    return request({
        url: '/admin/xy/dorm/save',
        method: 'post',
        params
    })
}
//更新
function dormupdate(params) {
    return request({
        url: '/admin/xy/dorm/update',
        method: 'post',
        params
    })
}
//删除
function dormdel(params) {
    return request({
        url: '/admin/xy/dorm/del',
        method: 'get',
        params
    })
}
//明细
function dormdetail(params) {
    return request({
        url: '/admin/xy/dorm/detail',
        method: 'get',
        params
    })
}
export default {
    dormlist,
    dormdel,
    dormsave,
    dormdetail,
    dormupdate
}